<template>
    <div class="not-found-container">
      <div class="not-found-content">
        <img src="@/assets/svg/404.svg" alt="404" class="not-found-image" />
        <div class="not-found-text">
          <h2>抱歉，您访问的页面不存在</h2>
          <p>请检查您输入的网址是否正确，或点击下方按钮返回首页</p>
        </div>
        <el-button type="primary" @click="goHome">返回首页</el-button>
      </div>
    </div>
  </template>
  
  <script setup>
  import { useRouter } from 'vue-router'
  
  const router = useRouter()
  
  const goHome = () => {
    router.push('/')
  }
  </script>
  
  <style scoped>
  .not-found-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f7fa;
  }
  
  .not-found-content {
    text-align: center;
    padding: 40px;
  }
  
  .not-found-image {
    width: 400px;
    height: 300px;
    margin-bottom: 20px;
  }
  
  .not-found-text {
    margin-bottom: 30px;
  }
  
  .not-found-text h2 {
    font-size: 24px;
    color: #303133;
    margin-bottom: 16px;
  }
  
  .not-found-text p {
    font-size: 16px;
    color: #606266;
    margin: 0;
  }
  </style>
  